package com.itheima.bean;

import org.springframework.beans.factory.FactoryBean;

/**
 * ClassName: DogFactoryBean
 * Description:
 * Date: 2023/03/22 PM 8:46:48
 * <p>
 * project: springboot
 * package: com.itheima.bean
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class DogFactoryBean implements FactoryBean<Dog> {

    @Override
    public Dog getObject() throws Exception {
        return new Dog();
    }

    @Override
    public Class<?> getObjectType() {
        return Dog.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
